﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace BusinessObjects
{
    [DataContract]
    public class PlayerConnectionMessage : BaseBusinessObject
    {
        private int senderId;
        private int targetId;
        private string comments;

        [DataMember]
        public int SenderId
        {
            get
            {
                return this.senderId;
            }
            set
            {
                if ( this.senderId == value )
                    return;

                this.senderId = value;
                this.NotifyPropertyChanged( "SenderId" );
            }
        }

        [DataMember]
        public int TargetId
        {
            get
            {
                return this.targetId;
            }
            set
            {
                if ( this.targetId == value )
                    return;

                this.targetId = value;
                this.NotifyPropertyChanged( "TargetId" );
            }
        }

        [DataMember]
        public string Comments
        {
            get
            {
                return this.comments;
            }
            set
            {
                if ( this.comments == value )
                    return;

                this.comments = value;
                this.NotifyPropertyChanged( "Comments" );
            }
        }
    }
}
